const app = getApp();
import {
  settleList,
  settleStatistics,
  settleOrderList,//结算订单
  settleMonthList,//结算月清单
} from "../../../../service/jb_oa_service"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    settleStatusOptions: [
      {
        text: "结算状态(全部)",
        value: ""
      },
      {
        text: "未结算",
        value: "0"
      },
      {
        text: "已结算",
        value: "1"
      },
    ],
    timeOptions: [
      {
        text: "时间筛选(全部)",
        value: ""
      },
      {
        text: "本月",
        value: "0"
      },
      {
        text: "上一月",
        value: "1"
      },
      {
        text: "近3月",
        value: "2"
      },
      {
        text: "近6月",
        value: "3"
      },
      {
        text: "近一年",
        value: "4"
      },
      {
        text: "近两年",
        value: "5"
      },
      {
        text: "近三年",
        value: "6"
      },
    ],
    requestParams: {
      status: '',
      dateLimit: '',
    },
    activeNames: [],
    settleList: [
      "1", "2", "3"
    ]

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  //折叠面板变化
  onCollapseChange(e) {
    console.log("这里了：e:" + JSON.stringify(e));
    this.setData({
      activeNames: e.detail
    })
  },
  //结算列表
  getSettleList() {
    settleList().then(res => {

    }).catch(err => {

    })
  },
  //结算统计
  getSettleStatistics(){
    settleStatistics().then(res => {

    }).catch(err => {

    })
  },
  //结算订单：
  getSettleOrderList(){
    settleOrderList().then(res => {

    }).catch(err => {

    })
  },
  //结算月清单
  getSettleMonthList(){
    settleMonthList().then(res => {

    }).catch(err => {

    })
  },
 
  


})